using Blackbird.Common.Utility;
using Blackbird.Core.Editable.Sprites;
using Microsoft.Xna.Framework.Content.Pipeline;

namespace Blackbird.Pipeline
{
    /// <summary>
    /// This imports multisprite frames and properties from a file
    /// </summary>
    [ContentImporter(".spk", DisplayName = "SpritePack Importer",
        DefaultProcessor = "Blackbird.Pipeline.SpritePackProcessor")]
    public class SpritePackImporter : ContentImporter<EditableSpritePack>
    {
        public override EditableSpritePack Import(string filename, ContentImporterContext context)
        {
            return SerializationUtility.CreateFromFile<EditableSpritePack>(filename);
        }
    }
}